home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / dom / nsIDOMNavigator.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  13KB  |  365 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDOMNavigator.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIDOMNavigator_h__
  6. #define __gen_nsIDOMNavigator_h__
  7.  
  8.  
  9. #ifndef __gen_domstubs_h__
  10. #include "domstubs.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIDOMNavigator */
  19. #define NS_IDOMNAVIGATOR_IID_STR "8758b72b-63d4-4685-b908-4275126410fb"
  20.  
  21. #define NS_IDOMNAVIGATOR_IID \
  22.   {0x8758b72b, 0x63d4, 0x4685, \
  23.     { 0xb9, 0x08, 0x42, 0x75, 0x12, 0x64, 0x10, 0xfb }}
  24.  
  25. class NS_NO_VTABLE nsIDOMNavigator : public nsISupports {
  26.  public: 
  27.  
  28.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMNAVIGATOR_IID)
  29.  
  30.   /* readonly attribute DOMString appCodeName; */
  31.   NS_IMETHOD GetAppCodeName(nsAString & aAppCodeName) = 0;
  32.  
  33.   /* readonly attribute DOMString appName; */
  34.   NS_IMETHOD GetAppName(nsAString & aAppName) = 0;
  35.  
  36.   /* readonly attribute DOMString appVersion; */
  37.   NS_IMETHOD GetAppVersion(nsAString & aAppVersion) = 0;
  38.  
  39.   /* readonly attribute DOMString language; */
  40.   NS_IMETHOD GetLanguage(nsAString & aLanguage) = 0;
  41.  
  42.   /* readonly attribute nsIDOMMimeTypeArray mimeTypes; */
  43.   NS_IMETHOD GetMimeTypes(nsIDOMMimeTypeArray * *aMimeTypes) = 0;
  44.  
  45.   /* readonly attribute DOMString platform; */
  46.   NS_IMETHOD GetPlatform(nsAString & aPlatform) = 0;
  47.  
  48.   /* readonly attribute DOMString oscpu; */
  49.   NS_IMETHOD GetOscpu(nsAString & aOscpu) = 0;
  50.  
  51.   /* readonly attribute DOMString vendor; */
  52.   NS_IMETHOD GetVendor(nsAString & aVendor) = 0;
  53.  
  54.   /* readonly attribute DOMString vendorSub; */
  55.   NS_IMETHOD GetVendorSub(nsAString & aVendorSub) = 0;
  56.  
  57.   /* readonly attribute DOMString product; */
  58.   NS_IMETHOD GetProduct(nsAString & aProduct) = 0;
  59.  
  60.   /* readonly attribute DOMString productSub; */
  61.   NS_IMETHOD GetProductSub(nsAString & aProductSub) = 0;
  62.  
  63.   /* readonly attribute nsIDOMPluginArray plugins; */
  64.   NS_IMETHOD GetPlugins(nsIDOMPluginArray * *aPlugins) = 0;
  65.  
  66.   /* readonly attribute DOMString securityPolicy; */
  67.   NS_IMETHOD GetSecurityPolicy(nsAString & aSecurityPolicy) = 0;
  68.  
  69.   /* readonly attribute DOMString userAgent; */
  70.   NS_IMETHOD GetUserAgent(nsAString & aUserAgent) = 0;
  71.  
  72.   /* readonly attribute boolean cookieEnabled; */
  73.   NS_IMETHOD GetCookieEnabled(PRBool *aCookieEnabled) = 0;
  74.  
  75.   /* readonly attribute boolean onLine; */
  76.   NS_IMETHOD GetOnLine(PRBool *aOnLine) = 0;
  77.  
  78.   /* boolean javaEnabled (); */
  79.   NS_IMETHOD JavaEnabled(PRBool *_retval) = 0;
  80.  
  81.   /* boolean taintEnabled (); */
  82.   NS_IMETHOD TaintEnabled(PRBool *_retval) = 0;
  83.  
  84. };
  85.  
  86. /* Use this macro when declaring classes that implement this interface. */
  87. #define NS_DECL_NSIDOMNAVIGATOR \
  88.   NS_IMETHOD GetAppCodeName(nsAString & aAppCodeName); \
  89.   NS_IMETHOD GetAppName(nsAString & aAppName); \
  90.   NS_IMETHOD GetAppVersion(nsAString & aAppVersion); \
  91.   NS_IMETHOD GetLanguage(nsAString & aLanguage); \
  92.   NS_IMETHOD GetMimeTypes(nsIDOMMimeTypeArray * *aMimeTypes); \
  93.   NS_IMETHOD GetPlatform(nsAString & aPlatform); \
  94.   NS_IMETHOD GetOscpu(nsAString & aOscpu); \
  95.   NS_IMETHOD GetVendor(nsAString & aVendor); \
  96.   NS_IMETHOD GetVendorSub(nsAString & aVendorSub); \
  97.   NS_IMETHOD GetProduct(nsAString & aProduct); \
  98.   NS_IMETHOD GetProductSub(nsAString & aProductSub); \
  99.   NS_IMETHOD GetPlugins(nsIDOMPluginArray * *aPlugins); \
  100.   NS_IMETHOD GetSecurityPolicy(nsAString & aSecurityPolicy); \
  101.   NS_IMETHOD GetUserAgent(nsAString & aUserAgent); \
  102.   NS_IMETHOD GetCookieEnabled(PRBool *aCookieEnabled); \
  103.   NS_IMETHOD GetOnLine(PRBool *aOnLine); \
  104.   NS_IMETHOD JavaEnabled(PRBool *_retval); \
  105.   NS_IMETHOD TaintEnabled(PRBool *_retval); 
  106.  
  107. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  108. #define NS_FORWARD_NSIDOMNAVIGATOR(_to) \
  109.   NS_IMETHOD GetAppCodeName(nsAString & aAppCodeName) { return _to GetAppCodeName(aAppCodeName); } \
  110.   NS_IMETHOD GetAppName(nsAString & aAppName) { return _to GetAppName(aAppName); } \
  111.   NS_IMETHOD GetAppVersion(nsAString & aAppVersion) { return _to GetAppVersion(aAppVersion); } \
  112.   NS_IMETHOD GetLanguage(nsAString & aLanguage) { return _to GetLanguage(aLanguage); } \
  113.   NS_IMETHOD GetMimeTypes(nsIDOMMimeTypeArray * *aMimeTypes) { return _to GetMimeTypes(aMimeTypes); } \
  114.   NS_IMETHOD GetPlatform(nsAString & aPlatform) { return _to GetPlatform(aPlatform); } \
  115.   NS_IMETHOD GetOscpu(nsAString & aOscpu) { return _to GetOscpu(aOscpu); } \
  116.   NS_IMETHOD GetVendor(nsAString & aVendor) { return _to GetVendor(aVendor); } \
  117.   NS_IMETHOD GetVendorSub(nsAString & aVendorSub) { return _to GetVendorSub(aVendorSub); } \
  118.   NS_IMETHOD GetProduct(nsAString & aProduct) { return _to GetProduct(aProduct); } \
  119.   NS_IMETHOD GetProductSub(nsAString & aProductSub) { return _to GetProductSub(aProductSub); } \
  120.   NS_IMETHOD GetPlugins(nsIDOMPluginArray * *aPlugins) { return _to GetPlugins(aPlugins); } \
  121.   NS_IMETHOD GetSecurityPolicy(nsAString & aSecurityPolicy) { return _to GetSecurityPolicy(aSecurityPolicy); } \
  122.   NS_IMETHOD GetUserAgent(nsAString & aUserAgent) { return _to GetUserAgent(aUserAgent); } \
  123.   NS_IMETHOD GetCookieEnabled(PRBool *aCookieEnabled) { return _to GetCookieEnabled(aCookieEnabled); } \
  124.   NS_IMETHOD GetOnLine(PRBool *aOnLine) { return _to GetOnLine(aOnLine); } \
  125.   NS_IMETHOD JavaEnabled(PRBool *_retval) { return _to JavaEnabled(_retval); } \
  126.   NS_IMETHOD TaintEnabled(PRBool *_retval) { return _to TaintEnabled(_retval); } 
  127.  
  128. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  129. #define NS_FORWARD_SAFE_NSIDOMNAVIGATOR(_to) \
  130.   NS_IMETHOD GetAppCodeName(nsAString & aAppCodeName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAppCodeName(aAppCodeName); } \
  131.   NS_IMETHOD GetAppName(nsAString & aAppName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAppName(aAppName); } \
  132.   NS_IMETHOD GetAppVersion(nsAString & aAppVersion) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAppVersion(aAppVersion); } \
  133.   NS_IMETHOD GetLanguage(nsAString & aLanguage) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLanguage(aLanguage); } \
  134.   NS_IMETHOD GetMimeTypes(nsIDOMMimeTypeArray * *aMimeTypes) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMimeTypes(aMimeTypes); } \
  135.   NS_IMETHOD GetPlatform(nsAString & aPlatform) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPlatform(aPlatform); } \
  136.   NS_IMETHOD GetOscpu(nsAString & aOscpu) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOscpu(aOscpu); } \
  137.   NS_IMETHOD GetVendor(nsAString & aVendor) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetVendor(aVendor); } \
  138.   NS_IMETHOD GetVendorSub(nsAString & aVendorSub) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetVendorSub(aVendorSub); } \
  139.   NS_IMETHOD GetProduct(nsAString & aProduct) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProduct(aProduct); } \
  140.   NS_IMETHOD GetProductSub(nsAString & aProductSub) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProductSub(aProductSub); } \
  141.   NS_IMETHOD GetPlugins(nsIDOMPluginArray * *aPlugins) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPlugins(aPlugins); } \
  142.   NS_IMETHOD GetSecurityPolicy(nsAString & aSecurityPolicy) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSecurityPolicy(aSecurityPolicy); } \
  143.   NS_IMETHOD GetUserAgent(nsAString & aUserAgent) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUserAgent(aUserAgent); } \
  144.   NS_IMETHOD GetCookieEnabled(PRBool *aCookieEnabled) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCookieEnabled(aCookieEnabled); } \
  145.   NS_IMETHOD GetOnLine(PRBool *aOnLine) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOnLine(aOnLine); } \
  146.   NS_IMETHOD JavaEnabled(PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->JavaEnabled(_retval); } \
  147.   NS_IMETHOD TaintEnabled(PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->TaintEnabled(_retval); } 
  148.  
  149. #if 0
  150. /* Use the code below as a template for the implementation class for this interface. */
  151.  
  152. /* Header file */
  153. class nsDOMNavigator : public nsIDOMNavigator
  154. {
  155. public:
  156.   NS_DECL_ISUPPORTS
  157.   NS_DECL_NSIDOMNAVIGATOR
  158.  
  159.   nsDOMNavigator();
  160.  
  161. private:
  162.   ~nsDOMNavigator();
  163.  
  164. protected:
  165.   /* additional members */
  166. };
  167.  
  168. /* Implementation file */
  169. NS_IMPL_ISUPPORTS1(nsDOMNavigator, nsIDOMNavigator)
  170.  
  171. nsDOMNavigator::nsDOMNavigator()
  172. {
  173.   /* member initializers and constructor code */
  174. }
  175.  
  176. nsDOMNavigator::~nsDOMNavigator()
  177. {
  178.   /* destructor code */
  179. }
  180.  
  181. /* readonly attribute DOMString appCodeName; */
  182. NS_IMETHODIMP nsDOMNavigator::GetAppCodeName(nsAString & aAppCodeName)
  183. {
  184.     return NS_ERROR_NOT_IMPLEMENTED;
  185. }
  186.  
  187. /* readonly attribute DOMString appName; */
  188. NS_IMETHODIMP nsDOMNavigator::GetAppName(nsAString & aAppName)
  189. {
  190.     return NS_ERROR_NOT_IMPLEMENTED;
  191. }
  192.  
  193. /* readonly attribute DOMString appVersion; */
  194. NS_IMETHODIMP nsDOMNavigator::GetAppVersion(nsAString & aAppVersion)
  195. {
  196.     return NS_ERROR_NOT_IMPLEMENTED;
  197. }
  198.  
  199. /* readonly attribute DOMString language; */
  200. NS_IMETHODIMP nsDOMNavigator::GetLanguage(nsAString & aLanguage)
  201. {
  202.     return NS_ERROR_NOT_IMPLEMENTED;
  203. }
  204.  
  205. /* readonly attribute nsIDOMMimeTypeArray mimeTypes; */
  206. NS_IMETHODIMP nsDOMNavigator::GetMimeTypes(nsIDOMMimeTypeArray * *aMimeTypes)
  207. {
  208.     return NS_ERROR_NOT_IMPLEMENTED;
  209. }
  210.  
  211. /* readonly attribute DOMString platform; */
  212. NS_IMETHODIMP nsDOMNavigator::GetPlatform(nsAString & aPlatform)
  213. {
  214.     return NS_ERROR_NOT_IMPLEMENTED;
  215. }
  216.  
  217. /* readonly attribute DOMString oscpu; */
  218. NS_IMETHODIMP nsDOMNavigator::GetOscpu(nsAString & aOscpu)
  219. {
  220.     return NS_ERROR_NOT_IMPLEMENTED;
  221. }
  222.  
  223. /* readonly attribute DOMString vendor; */
  224. NS_IMETHODIMP nsDOMNavigator::GetVendor(nsAString & aVendor)
  225. {
  226.     return NS_ERROR_NOT_IMPLEMENTED;
  227. }
  228.  
  229. /* readonly attribute DOMString vendorSub; */
  230. NS_IMETHODIMP nsDOMNavigator::GetVendorSub(nsAString & aVendorSub)
  231. {
  232.     return NS_ERROR_NOT_IMPLEMENTED;
  233. }
  234.  
  235. /* readonly attribute DOMString product; */
  236. NS_IMETHODIMP nsDOMNavigator::GetProduct(nsAString & aProduct)
  237. {
  238.     return NS_ERROR_NOT_IMPLEMENTED;
  239. }
  240.  
  241. /* readonly attribute DOMString productSub; */
  242. NS_IMETHODIMP nsDOMNavigator::GetProductSub(nsAString & aProductSub)
  243. {
  244.     return NS_ERROR_NOT_IMPLEMENTED;
  245. }
  246.  
  247. /* readonly attribute nsIDOMPluginArray plugins; */
  248. NS_IMETHODIMP nsDOMNavigator::GetPlugins(nsIDOMPluginArray * *aPlugins)
  249. {
  250.     return NS_ERROR_NOT_IMPLEMENTED;
  251. }
  252.  
  253. /* readonly attribute DOMString securityPolicy; */
  254. NS_IMETHODIMP nsDOMNavigator::GetSecurityPolicy(nsAString & aSecurityPolicy)
  255. {
  256.     return NS_ERROR_NOT_IMPLEMENTED;
  257. }
  258.  
  259. /* readonly attribute DOMString userAgent; */
  260. NS_IMETHODIMP nsDOMNavigator::GetUserAgent(nsAString & aUserAgent)
  261. {
  262.     return NS_ERROR_NOT_IMPLEMENTED;
  263. }
  264.  
  265. /* readonly attribute boolean cookieEnabled; */
  266. NS_IMETHODIMP nsDOMNavigator::GetCookieEnabled(PRBool *aCookieEnabled)
  267. {
  268.     return NS_ERROR_NOT_IMPLEMENTED;
  269. }
  270.  
  271. /* readonly attribute boolean onLine; */
  272. NS_IMETHODIMP nsDOMNavigator::GetOnLine(PRBool *aOnLine)
  273. {
  274.     return NS_ERROR_NOT_IMPLEMENTED;
  275. }
  276.  
  277. /* boolean javaEnabled (); */
  278. NS_IMETHODIMP nsDOMNavigator::JavaEnabled(PRBool *_retval)
  279. {
  280.     return NS_ERROR_NOT_IMPLEMENTED;
  281. }
  282.  
  283. /* boolean taintEnabled (); */
  284. NS_IMETHODIMP nsDOMNavigator::TaintEnabled(PRBool *_retval)
  285. {
  286.     return NS_ERROR_NOT_IMPLEMENTED;
  287. }
  288.  
  289. /* End of implementation class template. */
  290. #endif
  291.  
  292.  
  293. /* starting interface:    nsIDOMJSNavigator */
  294. #define NS_IDOMJSNAVIGATOR_IID_STR "4b4f8316-1dd2-11b2-b265-9a857376d159"
  295.  
  296. #define NS_IDOMJSNAVIGATOR_IID \
  297.   {0x4b4f8316, 0x1dd2, 0x11b2, \
  298.     { 0xb2, 0x65, 0x9a, 0x85, 0x73, 0x76, 0xd1, 0x59 }}
  299.  
  300. class NS_NO_VTABLE nsIDOMJSNavigator : public nsISupports {
  301.  public: 
  302.  
  303.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMJSNAVIGATOR_IID)
  304.  
  305.   /* void preference (); */
  306.   NS_IMETHOD Preference(void) = 0;
  307.  
  308. };
  309.  
  310. /* Use this macro when declaring classes that implement this interface. */
  311. #define NS_DECL_NSIDOMJSNAVIGATOR \
  312.   NS_IMETHOD Preference(void); 
  313.  
  314. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  315. #define NS_FORWARD_NSIDOMJSNAVIGATOR(_to) \
  316.   NS_IMETHOD Preference(void) { return _to Preference(); } 
  317.  
  318. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  319. #define NS_FORWARD_SAFE_NSIDOMJSNAVIGATOR(_to) \
  320.   NS_IMETHOD Preference(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Preference(); } 
  321.  
  322. #if 0
  323. /* Use the code below as a template for the implementation class for this interface. */
  324.  
  325. /* Header file */
  326. class nsDOMJSNavigator : public nsIDOMJSNavigator
  327. {
  328. public:
  329.   NS_DECL_ISUPPORTS
  330.   NS_DECL_NSIDOMJSNAVIGATOR
  331.  
  332.   nsDOMJSNavigator();
  333.  
  334. private:
  335.   ~nsDOMJSNavigator();
  336.  
  337. protected:
  338.   /* additional members */
  339. };
  340.  
  341. /* Implementation file */
  342. NS_IMPL_ISUPPORTS1(nsDOMJSNavigator, nsIDOMJSNavigator)
  343.  
  344. nsDOMJSNavigator::nsDOMJSNavigator()
  345. {
  346.   /* member initializers and constructor code */
  347. }
  348.  
  349. nsDOMJSNavigator::~nsDOMJSNavigator()
  350. {
  351.   /* destructor code */
  352. }
  353.  
  354. /* void preference (); */
  355. NS_IMETHODIMP nsDOMJSNavigator::Preference()
  356. {
  357.     return NS_ERROR_NOT_IMPLEMENTED;
  358. }
  359.  
  360. /* End of implementation class template. */
  361. #endif
  362.  
  363.  
  364. #endif /* __gen_nsIDOMNavigator_h__ */
  365.